<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/10/12
 * Time: 19:02
 */

namespace app\index\validate;
use think\Validate;
class User extends Validate
{
// 验证规则
    protected $rule = [
        'nickname' => ['require', 'min'=>5, 'token'],
        'email' => ['require', 'email'],
        'birthday' => ['dateFormat' => 'Y-m-d'],
    ];
}